package com.augurit.common.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * WEB服务器Entity类
 * 
 */
@Entity
@Table(name = "AC_SERVER")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class AcServer {

	//属性
	private Long servId;		//主键ID
	private String servName;	//WEB服务器名称
	private String servIp;		//WEB服务器IP地址
	private String servPort;	//WEB服务器端口
	private String remark;		//备注

	
	@Id
    @SequenceGenerator(name="SEQ_AC_SERVER", sequenceName="SEQ_AC_SERVER", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_AC_SERVER")
	public Long getServId() {
		return servId;
	}

	public void setServId(Long servId) {
		this.servId = servId;
	}

	public String getServIp() {
		return servIp;
	}

	public void setServIp(String servIp) {
		this.servIp = servIp;
	}

	public String getServPort() {
		return servPort;
	}

	public void setServPort(String servPort) {
		this.servPort = servPort;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getServName() {
		return servName;
	}

	public void setServName(String servName) {
		this.servName = servName;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}